home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_kdelibs.idb / usr / freeware / kde / include / bison2cpp.h.z / bison2cpp.h
Encoding:
C/C++ Source or Header  |  1999-01-26  |  2.1 KB  |  75 lines

  1. /* This file is part of the KDE libraries
  2.     Copyright (C) 1997 Torben Weis (weis@kde.org)
  3.  
  4.     This library is free software; you can redistribute it and/or
  5.     modify it under the terms of the GNU Library General Public
  6.     License as published by the Free Software Foundation; either
  7.     version 2 of the License, or (at your option) any later version.
  8.  
  9.     This library is distributed in the hope that it will be useful,
  10.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.     Library General Public License for more details.
  13.  
  14.     You should have received a copy of the GNU Library General Public License
  15.     along with this library; see the file COPYING.LIB.  If not, write to
  16.     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17.     Boston, MA 02111-1307, USA.
  18. */
  19. #ifndef bison2cpp_h
  20. #define bison2cpp_h
  21.  
  22. #define OP_ASSIGN 1
  23.  
  24. #define OP_MUL 20
  25. #define OP_ADD 21
  26. #define OP_DIV 22
  27. #define OP_SUB 23
  28. #define OP_SL 24
  29. #define OP_SR 25
  30. #define OP_BAND 26
  31. #define OP_BOR 27
  32. #define OP_BXOR 28
  33.  
  34. #define OP_AND 30
  35. #define OP_OR 31
  36.  
  37. #define OP_EQ 40
  38. #define OP_NEQ 41
  39. #define OP_LT 42
  40. #define OP_GT 43
  41. #define OP_LEQ 44
  42. #define OP_GEQ 45
  43.  
  44. #ifndef ____CPP____
  45.  
  46. void* newJSInteger( int _value );
  47. void* newJSBinaryOperator( int _op, void* _left, void *_right );
  48. void* newJSAssignment( int _op, void* _left, void *_right );
  49. void* newJSIdentifier( char* _name );
  50. void* newJSStatement( void *_code, void *_next_code );
  51. void* newJSFunction( const char *_name, void *_param, void *_code );
  52. void* newJSParameter( const char *_name, void *_next );
  53. void* newJSArgument( void *_code, void *_next );
  54. void* newJSFunctionCall( void *_function, void *_arguments );
  55. void* newJSConstructorCall( void *_function, void *_arguments );
  56. void* newJSMember( void *_obj, char* _member );
  57. void* newJSArrayAccess( void *_array, void *_index );
  58. void* newJSString( char *_string );
  59. void* newJSBool( char );
  60. void* newJSFloat( double );
  61. void* newJSThis();
  62. void* newJSNull();
  63.  
  64. void jsAppendCode( void *_code );
  65. void mainParse( const char *_code );
  66.  
  67. #else
  68.  
  69. extern "C" void mainParse( const char *_code );
  70.  
  71. #endif
  72.  
  73.  
  74. #endif
  75.